package com.example.design.shejimoshi.action.template.模板方法结合回调函数;

/**
 * @Description TODO
 * @date 2022/10/26 15:11
 * @Author liuzhihui
 * @Version 1.0
 */
public class Client {
    public static void main(String[] args) {
        GameTemplate gameTemplate = new GameTemplate();
        gameTemplate.play(new Basketball());
        System.out.println();
        gameTemplate.play(()-> System.out.println("FootBall"));
    }
}
